package com.cium.aqie.begin

/**
 * @Function:
 * @Author: aqie
 * @Date: 2019/8/27 14:54
 */
val range: IntRange = 0..1024 // [0, 1024]
val range_exclusive: IntRange = 0 until 1024 // [0, 1024) = [0, 1023]

val emptyRange: IntRange = 0..-1
val emptyRange2: IntProgression = 10 downTo -1

fun main(args: Array<String>) {
    println(emptyRange.isEmpty())
    println(emptyRange2.step)
    println(emptyRange2.first)
    println(range.contains(50))
    println(1024 in range_exclusive)

    for(i in range_exclusive) print("$i, ")

}